package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @program: itheima-leadnews
 * @description: 关键词实体类
 * @author: pw
 * @create: 2022-08-10 10:12
 **/
@Data
@TableName(value = "ad_sensitive")
@ApiModel(description = "敏感词实体类")

public class AdSensitive {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Size(min = 1, max = 10, message = "数据长度在1-10之间")
    @NotEmpty
    @TableField(value = "sensitives")
    private String sensitives;
    @TableField(value = "created_time")
    private Date createdTime;
}
